package com.cykj.user.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.math.BigDecimal;
import java.util.Date;

@Schema(description = "用户实体")
@TableName("ct")
public class Customer {
    private Integer id;
    private String name;
    private String telephone;
    private String password;
    private String avatar;
    private BigDecimal balance;
    private Integer defaultAddressId;
    private Integer status;
    private Date createTime;
    // 新增拉黑状态字段（0-正常，1-拉黑）
    @Schema(description = "是否拉黑：0正常 1拉黑")
    private Integer isBlacklisted;

    public Customer() {
    }

    public Customer(Integer id, String name, String telephone, String password, String avatar,
                    BigDecimal balance, Integer defaultAddressId, Integer status, Date createTime,
                    Integer isBlacklisted) {
        this.id = id;
        this.name = name;
        this.telephone = telephone;
        this.password = password;
        this.avatar = avatar;
        this.balance = balance;
        this.defaultAddressId = defaultAddressId;
        this.status = status;
        this.createTime = createTime;
        this.isBlacklisted = isBlacklisted;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public Integer getDefaultAddressId() {
        return defaultAddressId;
    }

    public void setDefaultAddressId(Integer defaultAddressId) {
        this.defaultAddressId = defaultAddressId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    // 新增isBlacklisted的getter和setter
    public Integer getIsBlacklisted() {
        return isBlacklisted;
    }

    public void setIsBlacklisted(Integer isBlacklisted) {
        this.isBlacklisted = isBlacklisted;
    }
}